﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.AuthorizeRBAC
{
    /// <summary>
    /// 用户表
    /// </summary>

    [SugarTable("Users")]
    public class Users : BaseEntity
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? UserName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? UserPwd { get; set; }

        /// <summary>
        /// 用户状态
        /// </summary>
        public int  UserState { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

   
    }
}
